package com.hzh.page.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 *
 * @author chenzw
 * @date 2022-11-01
 */
@Data
@TableName("authentication_menu")
public class AuthenticationMenuEntity implements Serializable {

     private static final long serialVersionUID = 1L;


    /**
     * id
     */
    @ApiModelProperty(value = "菜单权限id")
     @TableId(type = IdType.AUTO)
     private Integer id;

    /**
     * 标题
     */
    @ApiModelProperty(value = "标题")
     private String title;

    /**
     * 路由值
     */
    @ApiModelProperty(value = "路由值")
     @TableField(value = "route_key")
     private String routeKey;

    /**
     * 页面权限
     */
    @ApiModelProperty(value = "页面权限")
     private Integer pagepermisson;

    /**
     * 等级
     */
    @ApiModelProperty(value = "等级")
     private Integer grade;

    /**
     * 上级菜单
     */
    @ApiModelProperty(value = "上级菜单")
     private Integer rightId;
    /**
     * 逻辑删除
     */
    @TableField("deleted")
    @TableLogic
    private Boolean deleted;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;
}
